<?php
include('top.php');
require_once('pasmy/dbwaarden.php');
/*echo "dbhost = $dbhost<br>";*/
echo "<br><br>";
$mysql_id = mysql_connect($dbhost, $dbuser, $dbpass);
mysql_select_db($db, $mysql_id);
if(isset($_POST["doen"])) {
	/*foreach($_POST as $sleutel => $waarde) {
		echo "sleutel = $sleutel en waarde = |$waarde| <br>";}*/
$swaarde = $_POST["upprix"];

switch($swaarde) {
	
	case "1":
		// Prijzen Vanzeveren
		?>
		<form action="bwrknvnzvrn.php" method="POST">
		<table align="center">
		<tr>
		<td>
		<strong><?php echo $dbvanzup[$taal];?> &nbsp;&nbsp;<input type="text" name="eigproc" size="3" maxlength="3" /> &nbsp;%</strong>
		</td>
		</tr>
		<tr>
		<td><br /><br />
		<div style="text-align: center"><input type="submit" name="update" value="Update" /></div>
		</td>		
		</tr>
		</table>
		</form>
		<?php
		break;
	case "2":
		// Prijzen Delsaux
		?>
		<form action="bwrkn.php" method="POST">
		<table align="center">
		<tr>
		<td>
		<strong><?php echo $dbdelsauxup[$taal];?> &nbsp;&nbsp;<input type="text" name="eigproc" size="3" maxlength="3" /> &nbsp;%</strong>
		</td>
		</tr>
		<tr>
		<td><br /><br />
		<div style="text-align: center"><input type="submit" name="update" value="Update" /></div>
		</td>		
		</tr>
		</table>
		</form>
		<?php
		break;
	case "3":
		// Prijzen Europa Rollers
		?>
		<form action="bwrkner.php" method="POST">
		<table align="center">
		<tr>
		<td>
		<strong><?php echo $dberup[$taal];?> &nbsp;&nbsp;<input type="text" name="eigproc" size="3" maxlength="3" /> &nbsp;%</strong>
		</td>
		</tr>
		<tr>
		<td><br /><br />
		<div style="text-align: center"><input type="submit" name="update" value="Update" /></div>
		</td>		
		</tr>
		</table>
		</form>
		<?php
		break;
	case "4":
		// prijzen JME
		?>
		<form action="bwrknjme.php" method="POST">
		<table align="center">
		<tr>
		<td>
		<strong><?php echo $dbjmeup[$taal];?> &nbsp;&nbsp;<input type="text" name="eigproc" size="3" maxlength="3" /> &nbsp;%</strong>
		</td>
		</tr>
		<tr>
		<td><br /><br />
		<div style="text-align: center"><input type="submit" name="update" value="Update" /></div>
		</td>		
		</tr>
		</table>
		</form>
		<?php
		break;
	}

}
else {
?>
<form action="prixup.php" method="post">
<table align="center">
<tr>
<td colspan="2" class="delsaux"><?php echo $dbprijsup[$taal];?></td>
</tr>
<tr>
<td><br /><br /><input type="radio" name="upprix" value="1" checked="checked"/> <strong>Prix Vanzeveren</strong> </td><td><br /><br /></td>
</tr>
<tr>
<td><input type="radio" name="upprix" value="2" /> <strong>Prix Delsaux</strong> </td><td>&nbsp;</td>
</tr>
<tr>
<td><input type="radio" name="upprix" value="3" /> <strong>Prix Europa Rollers</strong> </td><td>&nbsp;</td>
</tr>
<tr>
<td><input type="radio" name="upprix" value="4" /> <strong>Prix JME</strong> </td><td>&nbsp;</td>
</tr>
<tr><td colspan="2">&nbsp;</td></tr>
<tr><td colspan="2"><div style="text-align: center"><input type="submit" name="doen" value="Go" /></div></td></tr>
</table>

</form>

<?php
}
include('footer.php');
?>
